package com.mumu.muPictureBackend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Builder;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Builder
@Data
public class Space implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String spaceName;
    private Integer spaceLevel;
    private Long maxSize;
    private Long maxCount;
    private Long totalSize;
    private Long totalCount;
    private Long userId;
    private java.util.Date createTime;
    private java.util.Date editTime;
    private java.util.Date updateTime;
    @TableLogic//标识这是一个逻辑删除字段
    private Integer isDelete;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = -38420734L;
}